<%--
    Document   : index
    Created on : Jul 7, 2011, 1:23:40 AM
    Author     : Thanhluan216
--%>

<%@page import="server.process.ProcessBeanLocal"%>
<%@page import="server.entity.Category"%>
<%@page import="javax.naming.Context"%>
<%@page import="javax.naming.InitialContext"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="header.jsp"></jsp:include>
            <div id="main">
                <div id="slidebar">
                    <div id="login">
                        <jsp:include page="login.jsp"></jsp:include>
                    </div>
                    <div id="search">
                        <jsp:include page="search.jsp"></jsp:include>
                    </div>
                    <div id="product">
                        <jsp:include page="categorypanel.jsp"></jsp:include>
                    </div>
                </div>
                <div id="content">
                    <a href="#">Home</a>-><a href="#">My Collection</a><br/>
                    <%
                        Context ctx = new InitialContext();
                        ProcessBeanLocal local = (ProcessBeanLocal) ctx.lookup("ProcessLocalJNDI");
                        Category cate = local.findbyCollectionID(request.getParameter("id"));
                    %>
                    <table border="0">
                        <tr>
                            <td>Image Name : <%= cate.getCollectionName() %></td>

                        </tr>
                        <tr>
                            <td rowspan="7"><img src="CategoryImage/<%= cate.getImage() %>" height="150" width="200"/></td>
                        </tr>

                        <tr>
                            <td>Image Description : <%= cate.getCollectionDescription()%></td>

                        </tr>
                        <tr>
                            <td>Date create : <%= cate.getDate().toString() %></td>

                        </tr>
                        <tr>
                            <td><a href="uploadPuclic.jsp?id=<%= cate.getCollectionID() %>" >Upload image in collection</a>

                    </table>

                </div>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>
